<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
           %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
           %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
           %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page contentType="text/html;charset=ISO-8859-1" import="ve.usb.crm.*"
         %><html:html>
    <head>
        <title>Administraci&oacute;n</title>
        <html:base/>
        <%@include file="../header/include.jsp" %>

    </head>
    <body>
        <div id="header"  class="ui-widget-header ui-corner-all">
            <h1><bean:message key="all.title"/></h1>
            <div id="menu">
                <ul id="nav">
                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div id="content" >
                            ${empty msg ? "" : msg}
                            <% request.setAttribute("_vacio", new Object[0]);%>
                            <div class="fg-toolbar ui-widget-header ui-corner-top">
                                <h1>Administraci&oacute;n</h1>
                            </div>




                            <script type="text/javascript">
                                $(function() {
                                    $("#tabs").tabs({
                                    });
                                });
                            </script>


                            <div id="tabs">
                                <ul>
                                    <li><a href="#tabs-1">Tipo Cuenta</a></li>
                                    <li><a href="#tabs-2">Sector</a></li>
                                    <li><a href="#tabs-3">T&iacute;tulo</a></li>
                                    <li><a href="#tabs-4">Asunto</a></li>
                                    <li><a href="#tabs-5">Prioridad</a></li>
                                    <li><a href="#tabs-6">Estado</a></li>
                                    <li><a href="#tabs-7">Clasificaci&oacute;n</a></li>
                                    <li><a href="#tabs-8">Etapas</a></li>
                                    <li><a href="#tabs-9">Temas</a></li>

                                </ul>
                                <div id="tabs-1">

                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="tipoCuenta" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Tipo Cuenta</html:link></li>
                                        </ul>
                                    </div>
                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_TipoCuenta" requestURI="/APreAdministrar.do" pagesize="10"  class="tipoCuenta" htmlId="tipoCuenta" id="tipoCuentaId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="tipoCuentaId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="tipoCuentaId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#tipoCuenta thead').addClass('ui-widget-header');
                                                $('table$tipoCuenta thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#tipoCuenta tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>




                                </div>


                                <div id="tabs-2">

                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="sector" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Sector</html:link></li>
                                        </ul>
                                    </div>

                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Sector" requestURI="/APreAdministrar.do" pagesize="10"  class="Sector" htmlId="Sector" id="SectorId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">

                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="SectorId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="SectorId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>


                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#Sector thead').addClass('ui-widget-header');
                                                $('table$Sector thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#Sector tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>


                                <div id="tabs-3">


                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="titulo" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo T&iacute;tulo</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Titulo" requestURI="/APreAdministrar.do" pagesize="10"  class="titulo" htmlId="titulo" id="tituloId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="tituloId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="tituloId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>


                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#titulo thead').addClass('ui-widget-header');
                                                $('table$titulo thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#titulo tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>

                                <div id="tabs-4">
                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="asunto" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Asunto</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Asunto" requestURI="/APreAdministrar.do" pagesize="10"  class="asunto" htmlId="asunto" id="asuntoId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">

                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="asuntoId" paramName="tipoCuenta" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="asuntoId" paramName="tipoCuenta" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>




                                            </display:column>
                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#asunto thead').addClass('ui-widget-header');
                                                $('table$asunto thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#asunto tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>
                                <div id="tabs-5">

                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="prioridad" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nueva Prioridad</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Prioridad" requestURI="/APreAdministrar.do" pagesize="10"  class="prioridad" htmlId="prioridad" id="prioridadId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="prioridadId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="prioridadId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                                <!--                                                                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                                                                                                        </ul>-->

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#prioridad thead').addClass('ui-widget-header');
                                                $('table$prioridad thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#prioridad tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>
                                <div id="tabs-6">
                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="estado" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Estado</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Estado" requestURI="/APreAdministrar.do" pagesize="10"  class="estado" htmlId="estado" id="estadoId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="estadoId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="estadoId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                                <!--                                                                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                                                                                                        </ul>-->

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#estado thead').addClass('ui-widget-header');
                                                $('table$estado thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#estado tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>
                                <div id="tabs-7">

                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="clasificacion" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nueva Clasificaci&oacute;n</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Clasificacion" requestURI="/APreAdministrar.do" pagesize="10"  class="clasificacion" htmlId="clasificacion" id="clasificacionId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="clasificacionId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="clasificacionId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                                <!--                                                                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                                                                                                        </ul>-->

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#clasificacion thead').addClass('ui-widget-header');
                                                $('table$clasificacion thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#clasificacion tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>

                                </div>
                                <div id="tabs-8">
                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="etapa" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nueva Etapa</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Etapa" requestURI="/APreAdministrar.do" pagesize="10"  class="etapas" htmlId="etapas" id="etapasId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="etapasId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="etapasId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                                <!--                                                                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                                                                                                        </ul>-->

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#etapas thead').addClass('ui-widget-header');
                                                $('table$etapas thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#etapas tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>
                                </div>
                                <div id="tabs-9">
                                    <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                        <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                            <li class="action_crear"><html:link action="/APreCrearAdministrar.do" paramId="idCategoria" paramName="temas" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Tema</html:link></li>
                                        </ul>
                                    </div>


                                    <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                        <display:table name="L_Temas" requestURI="/APreAdministrar.do" pagesize="10"  class="temas" htmlId="temas" id="temasId">

                                            <display:column property="nombre" title="Nombre" sortable="true"/>
                                            <display:column title="Acciones">
                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                    <li class="sf_admin_action_edit"><html:link action="/APreEditarAdministrar.do" paramId="idCategoria" paramName="temasId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                                    <li class="sf_admin_action_delete"><html:link action="/AEliminarAdministrar.do" paramId="idCategoria" paramName="temasId" paramProperty="idCategoria" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Borrar</html:link>
                                                </ul>

                                                <!--                                                                                                <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                                                                                                        </ul>-->

                                            </display:column>

                                        </display:table>

                                        <script>
                                            $(document).ready(function() {

                                                $('table#temas thead').addClass('ui-widget-header');
                                                $('table$temas thead tr th').addClass('ui-state-default ui-th-column');
                                                $('table#temas tbody tr').addClass('sf_admin_row ui-widget-content odd');
                                            });
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="right">

                        <%@include file="../administrador/VMenuAdmin.jsp" %>
                    </div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <div id="footer"> </div>

    </body>
</html:html>